package com.jingding.procurement.restful;


public enum ServiceCode {


    OK(200, "成功"),
    ERR(400, "失败"),
    JSON_ERR(410, "JSON格式错误，请检查是否有多余的空格,标点或使用了中文符号！"),
    PK_ORG_NULL(420, "销售组织不能为空"),
    IP_LIMIT(429,"当前IP请求以上限,请稍后重试!"),
    ST_MORE_THAN_ET(430, "开始时间不得大于结束时间!"),
    ERR_UNKNOWN(440, "服务器忙，请联系管理员!"),
    END_31DAY(450, "结束时间不得大于开始时间31天!"),
    SQL_ERR(460, "数据库查询异常,请稍后重试!");


    private final int code;
    private final String message;

    ServiceCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
